﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneGenerator : MonoBehaviour
{
    [Header("BattleField")]
    int battleFieldWidth = 10;
    int battleFieldHeight = 10;
    float widthPadding = .5f;
    float heightPadding = .5f;

    public GameObject battlefieldTile;

    void Start()
    {
        //CreateBattleField();
    }

    void Update()
    {
        
    }

    private void CreateBattleField()
    {
        for (int x = 0; x < battleFieldWidth; x++)
        {
            GameObject row = new GameObject();
            for (int y = 0; y < battleFieldHeight; y++)
            {
                GameObject tile = GameObject.Instantiate(battlefieldTile, new Vector3(x * widthPadding, 0, y * heightPadding), Quaternion.identity);
                tile.transform.eulerAngles = new Vector3(90, 0, 0);
            }
        }
    }
}
